package com.winglish.as3.exam.toeicspeaking.vo 
{
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	
	import com.winglish.as3.utils.ObjectUtil;
	
	/**
	 * ...
	 * @author charmjin
	 */
	public class TSVolumeMicTestVo extends MovieClip
	{
		protected var playMc:MovieClip;	
		protected var stopMc:MovieClip;
		protected var recMc:MovieClip;
		protected var recStopMc:MovieClip;
		protected var recListenMc:MovieClip;
		protected var recListenStopMc:MovieClip;
		
		protected var finishBtn:SimpleButton;
		
		public function TSVolumeMicTestVo() 
		{
			playMc = stopMc = recMc = recStopMc = recListenMc = recListenStopMc = null;
		}
		
		/**
		 * 매핑.
		 * @param	path
		 */
		protected function mapping(path:MovieClip):void {
			var arr:Array = new Array();
			arr = ObjectUtil.traceDisplayList(path);
			for each (var i:String in arr) 
			{
				try {
					if (i.indexOf("Mc") != -1 ) {
						this[i] = new MovieClip();
						this[i] = path[i];
						this[i].mouseChildren = false;
						this[i].buttonMode = false;
					}else if (i.indexOf("Btn") != -1) {
						this[i] = new SimpleButton();
						this[i] = path[i];
						this[i].buttonMode = false;
					}
					
				}catch (e:Error) {
					//trace(i + " not find MovieClip" );
				}
			}
		}
		
	}

}